import random
import pandas as pd
# with open("ips.txt","w+") as f:
#     for i in range(12):
#         f.write('172.25.254.'+str(random.randint(1,255))+'\n')
# f = open("ips.txt")
# df = pd.DataFrame({'ip':f.readlines()})
# print(df)
# t = df.loc[:,'ip'].value_counts()[1:11]
# print(t)
result_dict = {}

with open("ips.txt") as fp:
    for i in fp:
        if i in result_dict:
            result_dict[i] +=1
        else:
            result_dict[i] = 1

